﻿// WinDirectUI.ConsoleDemo.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//

#include <sstream>
#include <string>
#include <iostream>
#include <iomanip>

int main()
{
    std::stringstream ss;
    int num = 42;
    double pi = 3.14159;


    ss << "The answer is " << std::hex << std::uppercase << num << ", and pi is approximately " << pi;

    std::string result = ss.str();
    std::cout << result << std::endl;


    return 0;

}

